package Service;

import Model.User;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author zyp
 * date 2022-03-08
 */
public interface UserService {
    boolean register(User user);

    boolean login(User user, HttpSession httpSession);

    boolean updateUser(User user);

    boolean deleteUser(int id);

    User findUserByUsername(String username);

    List<User> findAllUsers();

    User findUserByUserId(int id);
}

